public class Employee2 {
    private String name;
    private int workday;
    private double persal;
    private double param;

    public Employee2(String name, int workday, double persal, double param) {
        this.name = name;
        this.workday = workday;
        this.persal = persal;
        this.param = param;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWorkday() {
        return workday;
    }

    public void setWorkday(int workday) {
        this.workday = workday;
    }

    public double getPersal() {
        return persal;
    }

    public void setPersal(double persal) {
        this.persal = persal;
    }

    public double getParam() {
        return param;
    }

    public void setParam(double param) {
        this.param = param;
    }
    public void printSal(){
        System.out.println(getName()+"的工资是:"+(getPersal()*getWorkday()*getParam()));
    }
    @Override
    public String toString() {
        return "Employy2{" +
                "name='" + name + '\'' +
                ", workday=" + workday +
                ", persal=" + persal +
                ", param=" + param +
                '}';
    }
}
